package com.small.base.qiniu;

import com.small.base.qiniu.core.QiniuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * QiniuConfiguration
 *
 * @author miajio
 */
@Configuration
@EnableConfigurationProperties(QiniuProperties.class)
public class QiniuConfiguration {
    @Autowired
    private QiniuProperties qiniuProperties;

    @Bean
    public QiniuService qiniuService() {
        return new QiniuService(qiniuProperties);
    }
}
